#include<stdio.h>
#include<math.h>

int main(void) {
    int n;
    scanf("%d", &n);
    int len = (int) log10(n) + 1; /*因为len是整型，写成len=log10(n)+1;
                                                            也行, 利用自动类型转换 */
    printf("%d是%d位数\n", n, len);
    return 0;
}
